<?php

/**
 * Base presenter for all application presenters.
 */
abstract class BasePresenter extends Nette\Application\UI\Presenter
{
    public function beforeRender()
    {
        $globals = Nette\Utils\Neon::decode(file_get_contents(APP_DIR.'/config/app.neon'));
        foreach ($globals['templateGlobals'] as $key=>$val)
        {
            $this->template->$key = $val;
        }
    }
}
